﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderProductList.aspx.cs" Inherits="Shop.Web.AjaxPages.OrderProductList" MasterPageFile="" EnableTheming="false" StylesheetTheme="" Theme="" %>
<asp:PlaceHolder runat="server" id="phMain">
<asp:Repeater runat="server" id="gridProduct" OnItemDataBound="gridProduct_DataBound">
<HeaderTemplate>
<table cellspacing="0" cellpadding="3" border="1" rules="all" style="width: 100%; border-collapse: collapse;" class="filter_content">
<tr>
<th></th>
<th>Описание</th>
<th>Цена</th>
<th>Я хочу...</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr Class="alternative">
<td> 
    <asp:HiddenField id="orderItemId" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.Id")%>'/>            
    <img src="images/Product/thumb_IMG<%# DataBinder.Eval(Container, "DataItem.Product.Group.Id")%>.jpg"/>
</td>
<td>
    <%# DataBinder.Eval(Container, "DataItem.Product.BrandArt")%><br />
    <a href="Product.aspx?id=<%# DataBinder.Eval(Container, "DataItem.Product.Group.Id")%>"><%# DataBinder.Eval(Container.DataItem, "Product.Name")%></a>
</td>
<td>
    <%# DataBinder.Eval(Container, "DataItem.Product.Price","{0:C}")%>
</td>
<td>
    <span runat="server" class="pseudo" id="btnChangeSize" ><span class="ui-icon ui-icon-info fleft"></span>&nbsp;изменить размер</span><br />
<%--    <asp:CheckBox id="chbAdd" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.AddSize")%>' Text=" уточнить размер"></asp:CheckBox><br />--%>
    <span class="pseudo" id="btnDelOrderItem" OnClick="DeleteOrderItem('<%# DataBinder.Eval(Container, "DataItem.Id")%>')" ><span class="ui-icon ui-icon-circle-close fleft"></span>&nbsp;удалить :(</span>
</td>
</tr>
</ItemTemplate>
<FooterTemplate></table></FooterTemplate>
</asp:Repeater> 
<div class="total ui-corner-bottom fright">Итого: <asp:Literal runat="server" id="ltItog"></asp:Literal></div>
</asp:PlaceHolder>
<asp:PlaceHolder runat="server" ID="phNoItems" Visible="false">
    К сожалению, вы пока ничего не заказали :( Может быть, подберете что-нибудь в <a href="Catalog.aspx">каталоге</a>?
</asp:PlaceHolder>